package activity.video.utils;

import java.util.Comparator;
import bean.VideoInfo;
/**
 * 按大小
 * Created by lt on 2018\3\1 0001.
 */

public class SizeComparator implements Comparator<VideoInfo> {
    @Override
    public int compare(VideoInfo o1, VideoInfo o2) {
        if(o1.getFileLen()>o2.getFileLen()){
            return 1;
        }else if(o1.getFileLen()==o2.getFileLen()){
            return 0;
        }else {
            return -1;
        }
    }
}
